package com.aaa.common.util;

/**
 * fileName:CutomException
 * description:
 *
 * @author:wzl createTime:2020/9/4 8:56
 */
public class CustomException extends RuntimeException{

    //错误编码
    private int errorCode;
    //错误信息描述
    private String errorMessage;

    /**
     * 构造函数
     * @param errorCode
     * @param errorMessage
     */
    public CustomException(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
